package main

func main() {

}
func maxDepth(s string) (res int) {
	//stack := make([]uint8, 0)
	stackTop := -1
	for i := range s {
		if s[i] == '(' {
			stackTop++
			if stackTop > res {
				res = stackTop
			}
		} else if s[i] == ')' {
			stackTop--
		}

	}
	return
}
